/*
 * Copyright (c) 2017.
 * @author fff
 * 17-10-23 下午4:36
 *
 */

package com.cpit.qualitycontrol.service;

import com.cpit.platform.common.entity.TableDataQueryCondition;
import com.cpit.platform.common.entity.TableJsonData;
import com.cpit.qualitycontrol.entity.CooperatorStaffer;

import java.util.List;

public interface CooperatorStafferService {
    CooperatorStaffer findById(Long id);
    List<CooperatorStaffer> findAll();
    List<CooperatorStaffer> findByCondition(int page,
                                     int size,
                                     String order,
                                     String orderBy,
                                     String name, String companyName);
    CooperatorStaffer create(CooperatorStaffer cooperator) throws Exception;
    CooperatorStaffer modify(CooperatorStaffer cooperator) throws Exception;
    void delete(CooperatorStaffer cooperator) throws Exception;
    void delete(Long id) throws Exception;
    @SuppressWarnings("rawtypes")
    TableJsonData findByConditionJqg(TableDataQueryCondition cond);
}
